home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / cpcug.zip / NPAD.DOC < prev    next >
Text File  |  1987-04-20  |  4KB  |  81 lines

  1.           NPAD (Notepad)                          Steven Holzner
  2.           Command
  3.           Copyright (c) 1986, Ziff-Davis Publishing Co.
  4.           ______________________________________________________
  5.  
  6.           Purpose:  Creates an on-screen window in which to keep
  7.                     notes while working in other programs.
  8.  
  9.           Format:   NPAD         (loads memory-resident program)
  10.                     <Ctrl-N>            (toggles notepad on/off)
  11.  
  12.           Remarks:  The NPAD notepad holds 10 lines of 25
  13.                     characters each.  The window is toggled on
  14.                     and off in the upper right corner of the
  15.                     screen.  Toggling the window off does not
  16.                     eliminate its contents, but pressing the
  17.                     Delete key while the window is on-screen
  18.                     does.  Single characters may be deleted with
  19.                     the backspace, and the carriage return is
  20.                     also recognized.  No provision for storing
  21.                     the contents of the notepad as a file are
  22.                     available, however.
  23.  
  24.                     Option 1: NPAD.COM can be modified by using
  25.                     DEBUG.  The ASCII and scan codes for the
  26.                     default trigger key (Ctrl-N) are 0Eh and 31h,
  27.                     respectively, and are located at the offset
  28.                     addresses xxxx:0336 and xxxx:0337.  To change
  29.                     these to use the reverse apostrophe (grave
  30.                     accent), you would enter
  31.  
  32.                          DEBUG NPAD.COM
  33.  
  34.                     and
  35.  
  36.                          -E 336
  37.  
  38.                     DEBUG will respond with
  39.  
  40.                     xxxx:0336  0E.
  41.  
  42.                     and you simply type in the new ASCII code, in
  43.                     this case, 60 (the hex value of decimal 96).
  44.  
  45.                     After entering E 337 and getting the response
  46.  
  47.                     xxxx:0337  31.
  48.  
  49.                     you type in the new scan code 29 (41 decimal)
  50.                     for the grave accent.  Other ASCII and scan
  51.                     codes are given in the BASIC and in the DOS
  52.                     Technical Reference manuals.
  53.  
  54.                     The two locations to examine and change for
  55.                     the NPAD colors are 02FF and 0413, which have
  56.                     a default value of 70h (112 decimal).  On a
  57.                     color monitor this produces a white (7)
  58.                     background with black (0) characters.  For
  59.                     red letters on white you would change the 70h
  60.                     to 74h (116 decimal) at these two locations.
  61.  
  62.                                  Page -1-
  63.                     The colors to which NPAD resets its portion
  64.                     of the screen on exit are set by the value at
  65.                     xxxx:0350h.  The default value is 07 (white
  66.                     characters on a black background).  For white
  67.                     letters on a dark blue background, change the
  68.                     07 to 17h (23 decimal); for dark blue letters
  69.                     on white, use 71h (113 decimal) at this location.
  70.  
  71.                     When you have made the changes you want, at
  72.                     the DEBUG hyphen prompt enter W and then Q.
  73.  
  74.                     Notes:
  75.  
  76.                     1.   NPAD is a memory-resident program that
  77.                          must scan the keyboard interrupts.  It
  78.                          will conflict with applications programs
  79.                          (e.g., XyWrite) that themselves
  80.                          commandeer the keyboard interrupts.
  81.